package com.zy.net

import com.zy.net.data.DataRecord
import okhttp3.Callback
import okhttp3.Request
import okhttp3.Response

interface NetServiceInterface {

    fun request(request: Request, responseCallback: Callback)

    fun request(url: String, responseCallback: Callback)

    fun execute(url: String): Response
    fun execute(request: Request): Response

    fun getAllStr(callback: retrofit2.Callback<String>)

    fun getAll(callback: retrofit2.Callback<DataRecord>)
}